<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'emp_list2.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" type="text/css" href="css/table.css">
</head>
<body>
	
	<table>
		<caption>个人信息</caption>
		<thead>
			<tr>
				<th width="10%">编号</th>
				<th>姓名</th>
				<th>性别</th>
				<th>生日</th>
				<th>学历</th>
				<th>银行账户</th>
				<th>部门</th>
				<th>职务</th>
				<th>电话</th>
				<th>住址</th>
				<th>基本工资</th>
				<th>三险一金</th>
			</tr>
		</thead>
		<sql:query var="result"
		sql="select emp_num,emp_name,emp_sex,emp_borth,emp_edu,emp_bank_account,emp_dept,emp_job,emp_tel,emp_address,emp_wage_base,emp_sxyj from t_employee where emp_id='${param.emp_id}'" />
		<tbody id="tab">
			<c:forEach var="row" items="${result.rowsByIndex}">
				<tr>
					<c:forEach var="column" items="${row}">
						<td><c:out value="${column}" />
						</td>
					</c:forEach>
				</tr>
			</c:forEach>
		</tbody>
		
	</table>
	
</body>
</html>